import request from "@/utils/request";

//根据分类获取平台属性
export function reqAttrList({ category1Id, category2Id, category3Id }) {
  return request({
    url: `/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`,
    method: "get"
  });
}

//保存平台属性
export function reqSaveAttr(data) {
  return request({
    url: `/admin/product/saveAttrInfo`,
    method: "post",
    data
  });
}


//删除平台属性
export function reqDeleteAttr(attrId) {
  return request({
    url: `/admin/product/deleteAttr/${attrId}`,
    method: "delete"
  });
}


